package spi;

import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.extension.Adaptive;

/**
 * @author 门那粒沙
 * @create 2020-08-09 9:45
 **/
public class OneMySpi implements MySpi {

    @Override
    public void hello(String name) {
        System.out.println(String.format("hello!%s,you are in class one", name));
    }

    @Override
    public String adaptiveOne(URL url) {
        return "this is class one";
    }

    @Override
    public String adaptiveTwo(MyURL myURL) {
        return String.format("this is class one：%s", myURL);
    }


}
